package com.ScoresSystem.service;

import com.ScoresSystem.pojo.Student;

import java.util.List;
import java.util.Map;

public interface StudentService {


    List<Student> selectAllStudents(Map<String, Object> map);

    List<Student> getAllStudent(String name, int pageIndex, int pageSize);

    // 获取数据总条数
    int getCount(String studentName);

    Student findStudentByStuNumber(String studentNo);

    int addStudent(Student student);

    int updateStudent(Student student);

    int deleteStudent(String studentNo);

    // 查询所有学生姓名
    List<Student> studentSelect();

    Student login(String userName, String password);

    Student findStudent(String studentNo, String oldPassword);

    int updatePassword(String studentNo, String newPassword);
}
